import 'package:dio/dio.dart';
import 'package:rxdart/rxdart.dart';
import 'package:wanchong/bean/strategy_detail_entity.dart';
import 'package:wanchong/bean/strategy_entity.dart';
import 'package:wanchong/bean/video_list_entity.dart';
import 'package:wanchong/bean/wend_list_entity.dart';
import 'package:wanchong/utils/http.dart';
///所有攻略
PublishSubject<StrategyEntity> strategy<BaseResponse>(int page) {
  return Http.getInstance().get("v1/strategy",params: FormData.from({
    "page":page
  })); 
}

///攻略详情
PublishSubject<StrategyDetailEntity> strategyDetail<BaseResponse>(String id) {
  return Http.getInstance().get("v1/detail_strategy/" + id,);
}


//我的收藏的攻略
PublishSubject<StrategyEntity> Mystrategy<BaseResponse>(int page) {
  return Http.getInstance().get("v1/my_strategy",params: FormData.from({
    "page":page
  }));
}

//我的收藏的视频
PublishSubject<VideoListEntity> Myvedio<BaseResponse>(int page) {
  return Http.getInstance().get("v1/vedio",params: FormData.from({
    "page":page
  }));
}

//我的收藏的问答
PublishSubject<WendListEntity> myQa<BaseResponse>(int page) {
  return Http.getInstance().get("v1/user_qa",params: FormData.from({
    "page":page
  }));
}